package com.example.model.entity.appointment;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 预约信息表
*/
@Data
@ApiModel(description = "预约信息")
public class Reservation {
    /** ID */
    @ApiModelProperty(hidden = true,value = "ID")
    private Integer id;
    /** 患者Id */
    @ApiModelProperty(value = "患者Id")
    private Integer userId;
    /** 医生Id */
    @ApiModelProperty(value = "医生Id")
    private Integer doctorId;
    private String doctorName;
    /** 患者疾病名 */
    @ApiModelProperty(value = "患者疾病名")
    private String disease;
    /** 疾病描述 */
    @ApiModelProperty(value = "疾病描述")
    private String diseaseDescription;
    /** 患者姓名 */
    @ApiModelProperty(value = "患者姓名")
    private String patientName;
    /** 患者身份证 */
    @ApiModelProperty(value = "患者身份证")
    private String peopleCard;
    /** 患者手机号码 */
    @ApiModelProperty(value = "患者手机号码")
    private String phone;
    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约日期")
    private Date appointmentDate;
    /** 预约时间 */
    @ApiModelProperty(value = "预约时间")
    private String appointmentTime;
    /** 预约状态 */
    @ApiModelProperty(value = "预约状态")
    private String status;
    /** 预约失败原因 */
    @ApiModelProperty(value = "预约失败原因")
    private String appointmentFailed;

    private String userName;
    private Double price;
    private Integer hospitalId;

}
